(function(){try{if("undefined"===typeof _io_dev_mod_js_loaded&&document&&document.cookie&&document.cookie.indexOf&&0a.indexOf(location.hostname)?!0:!1};_io_page=function(){var a=document.title||"none",a=_io_replace_to_html(a).replace(/\xA0/g," ").trim(),a=_io_replace_to_html(a).trim(); return encodeURIComponent(a)};_io_author=function(){var a=!1,b=document.querySelector(".io-hidden-author, .io-author");b&&(a=b.textContent.trim());document.querySelector("#article article")&&(a=decodeURIComponent("%d0%91%d0%b5%d0%b7 %d0%b0%d0%b2%d1%82%d0%be%d1%80%d0%b0"));(b=document.querySelector("#author:nth-of-type(1) h4"))&&(a=b.textContent.trim().toUpperCase());if(a&&(a=a.replace(/(<([^>]+)>)/ig,"").trim(),a=a.replace(/[:,']/g,"_"),0<=a.indexOf(",")&&(a=a.substring(0,a.indexOf(","))),!(0<=a.indexOf(":"))&& a))return a=a.trim(),encodeURIComponent(a)};_io_get_page_type=function(){for(var a=0;a<_io_slices.length;a++)if(-1<_io_slices[a].indexOf("page_type"))return!0;return!1};_io_device=function(){navigator.userAgent||(navigator.userAgent="undefined");var a="desktop",b=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(navigator.userAgent),c=/Tablet|PlayBook|iPad/i.test(navigator.userAgent)||/Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent)&&!/Opera Mini/i.test(navigator.userAgent), d=/Android/i.test(navigator.userAgent),e=/iPhone|iPad|iPod/i.test(navigator.userAgent);b&&(a=c?"tablet":"smart",a=d?a+"%20(Android)":e?a+"%20(iOS)":a+"%20(Other)");return a};_io_start_page=function(){if(-1!==_io_cookie_indexOf("__io_p=")){var a=_io_cookie_match(/__io_p=([^;]+)/),a=a[0].split("|||");a[0]=a[0].substr(7,a[0].length);a[0]=a[0].replace(/[:,]/g,"_");return a[0]}a=new Date;a.setYear(a.getFullYear()+1);_io_cookie_set_value("__io_p="+_io_page()+"|||"+_io_referrer()+"; expires="+a.toUTCString()+ "; path=/");return _io_page()};_io_referrer_group=function(a){a=a.replace("www.","");-1!==a.indexOf("/")&&(a=a.split("/")[2]);a=a.replace(/\.$/,"");a=-1===a.indexOf("plus.google.")?a.replace(/google\.[a-z]+(\.[a-z]+)?/,"google"):a.replace(/google(\.[a-z]+)?(\.[a-z]+)?/i,"google");-1!==a.indexOf("plus.url.google")&&(a="google.plus");a=a.replace(/([m|mobile|web|mbasic|touch]\.)?facebook\.com/,"facebook");a=a.replace(/facebook/i,"facebook");a=a.replace(/fb\.me/,"facebook");a=a.replace(/^fb$/,"facebook"); a=a.replace(/(m\.)?vk\.com/,"vk.com");a=a.replace(/vkontakte\.ru/,"vk.com");a=a.replace(/^vk$/,"vk.com");a=a.replace(/([a-z_]+).vk.com/,"vk.com");a=a.replace(/^t\.co/,"twitter");a=a.replace(/clck\.yandex\.ru/,"yandex.ru");a=a.replace(/yandex\.[a-z]+(\.[a-z]+)?/,"yandex.ru");a=a.replace(/m\.ok\.ru/,"ok.ru");a=a.replace(/l\.facebook/,"facebook");a=a.replace(/lfacebook/,"facebook");a=a.replace(/mobifacebook/,"facebook");a=a.replace(/wefacebook/,"facebook");a=a.replace(/twitter.com/,"twitter");a=a.replace(/com.google/, "google");a=a.replace(/Google/,"google");a=a.replace(/([a-z_]+).yahoo.com/,"yahoo.com");a=a.replace(/([a-z_]+).bing.com/,"bing.com");a=a.replace(/([a-z_]+).baidu.com/,"baidu.com");a=a.replace(/m\.news\.yandex/,"news.yandex");a=a.replace(/googleads\.g\.doubleclick\.net/,"doubleclick.net");a=a.replace(/(.*)\.directadvert\.ru/,"directadvert.ru");-1!==a.indexOf("news")&&-1!==a.indexOf("yandex")&&(a="news.yandex.ru");a=a.replace(/duckduckgo\.com/i,"duckduckgo");a=a.replace(/ecosia\.org/i,"ecosia");return encodeURIComponent(a.replace(/[:,]/g, "_"))};_io_source_for_referrer=function(a){var b=[];location.search&&(b=location.search.substr(1).split(/&/));for(var c=0;ca.indexOf(location.hostname)?!0:!1;if(!b){var c=new Date;c.setYear(c.getFullYear()+1);_io_cookie_set_value("__io_r="+a+"; expires="+c.toUTCString()+"; path=/")}if(b)if(a=_io_cookie_match(/__io_r=([^;]+)/),-1!==_io_cookie_indexOf("__io_r=")&&a&&a.length&&1a&&(a=0);return a=0==a?"0":7>a?a+"d":30>a?Math.round(a/7)+"w":Math.round(a/30)+"m"};_io_track_queue=function(a,b){if("undefined"!=typeof localStorage){var c=localStorage._io_queue,c=c?JSON.parse(c):[];c.push({key:a,value:b});localStorage._io_queue=JSON.stringify(c)}};_io_browser=function(){navigator.userAgent||(navigator.userAgent="undefined");var a=navigator.userAgent, b,c=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(c[1]))return/\brv[ :]+(\d+)/g.exec(a),"IE";if("Chrome"===c[1]&&(b=a.match(/\b(Edge)\/(\d+)/),null!=b))return"Edge";if("Chrome"===c[1]&&(b=a.match(/\b(OPR)\/(\d+)/),null!=b))return"Opera";if("Chrome"===c[1]&&(b=a.match(/\b(YaBrowser)\/(\d+)/),null!=b))return"YaBrowser";c=c[2]?[c[1],c[2]]:[navigator.appName,navigator.appVersion,"-?"];null!=(b=a.match(/version\/(\d+)/i))&&c.splice(1,1,b[1]);c[0]=c[0].replace(/[0-9\s]+$/g, "");"MSIE"==c[0]&&(c[0]="IE");return c[0]};_io_last_visit=function(){var a=_io_cookie_match(/__io_lv=([^;]+)/);if(a)a=a[1];else return"0";return a=Math.round((+Date.now()-a)/864E5)};_io_user_type=function(){var a="";if(-1==_io_cookie_indexOf("__io_lv=")){var a="new",b=new Date;b.setYear(b.getFullYear()+1);_io_cookie_set_value("__io_lv="+ +Date.now()+"; expires="+b.toUTCString()+"; path=/")}else 0==_io_lifetime()?a="new":(a=1*_io_last_visit(),a=30b&&"start"==a){a="finished";b=["top","middle","bottom","finished"];for(e=0;e<=b.indexOf(a);e++)_io_track_readability_on_scroll(b,e);return"finished"}e=b-document.body.getBoundingClientRect().top;b=10*Math.round(10-b/e*10);break}}if("start"!=a)for(100b&&(b=0),a=25>=b?"top":50>=b?"middle":75>=b? "bottom":"finished",b=["top","middle","bottom","finished"],e=0;e<=b.indexOf(a);e++)_io_track_readability_on_scroll(b,e)}if("finished"!=a("start")){var b="";("undefined"==typeof _io_tr_element?document:_io_tr_element).addEventListener("scroll",function(){clearInterval(b);b=setTimeout(a,200)})}};_io_decode_escape_sequence=function(a){return a.replace(/\\x([0-9A-Fa-f]{2})/g,function(a,c){return String.fromCharCode(parseInt(c,16))})};_io_track=function(a,b,c){if(a){Array.isArray(a)&&(a=a.join("&/?k[]=42381:")); a=_io_decode_escape_sequence(a);c=0<=a.indexOf("visits_instantly")?"&__io="+("undefined"!=typeof _io_getCookie("__io")?_io_getCookie("__io"):""):"";b="https://tt.onthe.io/?k[]=42381:"+a+"&s=0f6028ed18d26b4b6fa68f933f5882d4"+("undefined"!=typeof b?"&_v="+b:"")+c+"&"+ +Date.now();c=document.createElement("script");var d="_io"+1E5*Math.random()+"."+ +Date.now();c.setAttribute("src",b);c.setAttribute("async",!0);c.setAttribute("id",d);try{c.addEventListener("load",function(){var a=document.getElementById(d); a&&(a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a))})}catch(e){_io_track_exception("error_script[error:"+e.message+",app:42381]"),_io_track_exception("error_script_dich[error:"+e.message.replace(/[:,]/g,"_")+",app:42381,url:"+location.pathname+"]"),_io_track_exception("error_script_new[error:"+e.message.replace(/[:,]/g,"_")+",app:42381,url:"+location.pathname+"]")}(document.head||document.getElementsByTagName("head")[0]).appendChild(c);_io_test_track=!0;-1k.indexOf(c)&&("read_finished"==c&&(b=parseInt((+Date.now()-window.io1mse7)/1E3),300z.indexOf(a)&&(_io_track_batch(a,b),z.push(a))};var q=[],A=function(){var a=0;return function(b,c){clearTimeout(a);a=setTimeout(b,c)}}();_io_track_batch=function(a,b){if(Array.isArray(a))for(var c= 0;cq.indexOf(a[c])&&q.push(a[c]);else 0>q.indexOf(a)&&q.push(a);A(function(){for(var a=[],b=0;ba.target.getCurrentTime()&&_io_track("video_started["+_io_slices.join(",")+",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+",reference_time:"+Math.round(a.target.getDuration())+",type:youtube]");0===a.data&&(_io_track("video_watch_finished["+_io_slices.join(",")+ ",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+",reference_time:"+Math.round(a.target.getDuration())+",type:youtube]"),_io_track("video_left["+_io_slices.join(",")+",depth:"+_io_depth+",title:"+encodeURIComponent(_io_replace_to_html(a.target.getVideoData().title))+",reference_time:"+Math.round(a.target.getDuration())+",time_int:"+Math.round(a.target.getDuration())+",type:youtube]"))}}}))}window.onbeforeunload=function(){var a=window._io_players, b;for(b in a)2!=a[b].getPlayerState()&&1!=a[b].getPlayerState()||_io_track("video_left["+_io_slices.join(",")+",depth:"+_io_depth+",time_int:"+Math.round(a[b].getCurrentTime())+",title:"+encodeURIComponent(_io_replace_to_html(a[b].getVideoData().title))+",reference_time:"+Math.round(a[b].getDuration())+",type:youtube]")};document.body.removeChild(a)};document.body.appendChild(a)};_io_track_html5_video=function(){if(0!==(__html_videos=document.querySelectorAll("video")).length){for(var a=0;a<__html_videos.length;a++){var b= __html_videos[a],c=_io_slices.slice(),d=Math.round(b.duration);"undefined"!=typeof d&&_io_slice_set("reference_time",d,c);_io_slice_set("type","html5",c);_io_slice_set("title",_io_slice_get("page"),c);_io_track_once("video_view["+c.join(",")+",depth:"+_io_depth+"]");(function(a,b){a.addEventListener("play",function(){1>this.currentTime&&_io_track_once("video_started["+b.join(",")+",depth:"+_io_depth+"]")});a.addEventListener("ended",function(){time_int=Math.round(this.currentTime);_io_slice_set("time_int", time_int,b);_io_track_once("video_watch_finished["+b.join(",")+",depth:"+_io_depth+"]");_io_track_once("video_left["+b.join(",")+",depth:"+_io_depth+"]")})})(b,c)}(function(a){var b=window.onbeforeunload;window.onbeforeunload=function(){for(var c=0;c([\s\S]*)<\/body.*?>/);c=d?d[1]:c;d=document.createElement("div");d.innerHTML=c;b(d)}})};_io_debug_on=function(){_io_setCookie("__io_debug",1)};_io_debug_off=function(){_io_setCookie("__io_debug",0,-1)};_io_is_debug=function(){return _io_getCookie("__io_debug")}; _io_dev_mod_on=function(){_io_setCookie("_io_dev_mod",1)};_io_dev_mod_off=function(){_io_setCookie("_io_dev_mod",0,-1)};_io_is_dev_mod=function(){return 1==_io_getCookie("_io_dev_mod")};_io_qsafe=function(a,b){var c;try{c=_io_q(a,b)}catch(d){}c?c.onfound=function(a){a(this);return this}:(c=_io_q(document.createElement("option")),c.onfound=function(){return this});return c};_io_in_array=function(a,b){if(-1!=["Array","NodeList"].indexOf(b.constructor.name))return-1"))return a=a.split("=>"),_io_q(a[0],b)?_io_q(a[0],b).has(a[1]):null;if(-1!==a.indexOf("||")){selectorList=a.split("||");for(var m=0;m"))return a=a.split("=>"),_io_qa(a[0], b).has(a[1]);var f=a instanceof Array?a:b.querySelectorAll(a);results=[];for(var h=0;ha?-1:a)));return Math.abs(a)},e=this,f=[],h=0;this.interval=setInterval(function(){25<= d()&&-1==f.indexOf("read_top")&&(_io_track_batch("read_top["+_io_slices.join(",")+"]"),h=(new Date).getTime(),f.push("read_top"));50<=d()&&-1==f.indexOf("read_middle")&&(_io_track_batch("read_middle["+_io_slices.join(",")+"]"),f.push("read_middle"));75<=d()&&-1==f.indexOf("read_bottom")&&(_io_track_batch("read_bottom["+_io_slices.join(",")+"]"),f.push("read_bottom"));100==d()&&-1==f.indexOf("read_finished")&&(h=Math.round(((new Date).getTime()-h)/1E3),_io_track_batch("read_finished["+_io_slices.join(",")+ ",time_int:"+h+"]"),f.push("read_finished"),e.stop())},1E3)}}}}},window.ioEndless.getArticle=function(){return this.getSelector("article")},window.ioEndless.getFooter=function(){return this.getSelector("footer")});window.ioGallery={methods:{click:"trackByClick",url:"trackByUrlChange",pages:"trackByPagesChange"},options:{gallerySelector:null,clickElements:null,pageviewsSendEnabled:!1,sendPhotoViewedOnStart:!1,galleryLinkPattern:"",setPageTypeGallery:!1},slices:_io_slices.slice(),track:function(a){if(this.options.gallerySelector)try{if(_io_q(this.options.gallerySelector)){this.options.setPageTypeGallery&& _io_slice_set("page_type","gallery");this.slices=_io_slices.slice();if("pages"==a&&!_io_getCookie("__io_gallery_page")||-1==location.href.indexOf(_io_getCookie("__io_gallery_page")))_io_track("gallery_opened["+this.slices.join(",")+"]"),_io_setCookie("__io_gallery_page",this.options.galleryLinkPattern);this.options.sendPhotoViewedOnStart&&_io_track("gallery_photo_viewed["+this.slices.join(",")+"]");var b=this.methods[a];if(this[b])this[b]();else _io_debug("something gone wrong")}}catch(c){_io_debug(" -- ioGallery : "+ c.message)}},trackByClick:function(){if(this.options.clickElements){var a=this;if(this.options.clickElements)_io_qa(this.options.clickElements).on("click",function(){_io_track("gallery_photo_viewed["+a.slices.join(",")+"]");a.options.pageviewsSendEnabled&&_io_t("pageviews",a.slices.join(","))})}},trackByPagesChange:function(){}};_io_getAuthorFrom={getFieldFromJson:function(a,b){for(var c=a.split("."),d=b,e=0;e div:last-child");_io_author()&&r&&(_io_slices.push("author:"+_io_author()),_io_track_read());_io_widget={init:function(h,k){_io_widget.id=h;_io_widget.hash=k;var f=new XMLHttpRequest,n=_io_widget.get_callback(),a={id:_io_widget.id,hash:_io_widget.hash,title:_io_page(),force_type:"main_new",path:location.pathname+location.search};f.open("POST",n,!0);f.setRequestHeader("Content-type","application/x-www-form-urlencoded"); f.onreadystatechange=function(){if(4==f.readyState&&200==f.status){var a=JSON.parse(f.responseText);if(a){for(var b=document.querySelectorAll('div[data-io-id="_io_widget_element"], script[data-io-id="_io_widget_element"]'),e=0;e]*>([\S\s]*?)<\/script>/gmi,""),a=a.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),b.innerHTML=a,a=b.textContent,b.textContent= "");return a}};k._io_push_viewed_url=function(a){n.push(a)};var n={config:{},configs:[],urlsList:[],listen:function(){setInterval(function(){k._io_push_viewed_url=function(a){n.push(a)};var a=n,b=k.location.href;-1==a.urlsList.indexOf(b)&&a.urlsList.push(b);a.config=a.getConfigByUrl(b);a.config.article=a.getArticleByUrl(b);k._io_current_config=a.config},10)},init:function(){n.listen();if("undefined"==typeof _io_data_config&&0==n.configs.length)return setTimeout(n.init,25);n.config=_io_data_config; k._io_current_config=_io_data_config;_io_push_viewed_url(_io_data_config);return!0},push:function(a){return this.configs.push(a)},getConfigIndex:function(a){a=this.urlsList.indexOf(a);return a=ab?-1:b)));return Math.abs(b)};var b=this,c=[],d=0;this.interval= setInterval(function(){25<=getArticleReadability()&&-1==c.indexOf("read_top")&&(_io_track_batch("read_top["+_io_slices.join(",")+"]"),d=(new Date).getTime(),c.push("read_top"));50<=getArticleReadability()&&-1==c.indexOf("read_middle")&&(_io_track_batch("read_middle["+_io_slices.join(",")+"]"),c.push("read_middle"));75<=getArticleReadability()&&-1==c.indexOf("read_bottom")&&(_io_track_batch("read_bottom["+_io_slices.join(",")+"]"),c.push("read_bottom"));95<=getArticleReadability()&&-1==c.indexOf("read_finished")&& (d=Math.round(((new Date).getTime()-d)/1E3),_io_track_batch("read_finished["+_io_slices.join(",")+",time_int:"+d+"]"),c.push("read_finished"),b.stop())},1E3)}};f.prepareAsyncSlices=function(f){var a=k.config.getSlices();a&&(a.url&&(_io_slice_delete("url"),_io_slice_set("url",_io_replace_to_html(a.url))),a.domain&&(_io_slice_delete("domain"),_io_slice_set("domain",_io_replace_to_html(a.domain))));var a=["reference_time","author","category","page"],b=[],c;for(c in f){var d=f[c].split(":")[0];-1==a.indexOf(d)&& b.push(f[c])}return b};f.trackError=function(f){_io_track_exception_new("error_script[app:42333,title:"+f.message.replace(/[:,'()]/g,"_")+",url:"+location.pathname+",browser:"+_io_browser()+",browser_version:"+_io_get_browser_version()+",device:"+_io_device()+",page:"+_io_page()+",domain:"+location.hostname+",writer:"+navigator.userAgent.replace(/[:,]/g,"_")+",cdn_version:6,user_id:"+_io_user()+"]");_io_track("error_script[title:"+f.message.replace(/[:,]/g,"_")+",url:"+location.pathname+",browser_version:"+ _io_get_browser_version()+",browser:"+_io_browser()+",device:"+_io_device()+",page:"+_io_page()+",writer:"+navigator.userAgent.replace(/[:,]/g,"_")+",cdn_version:6,user_id:"+_io_user()+"]")};return{init:function(){f.init()}}}(document,window);-1!==document.cookie.indexOf("_io_dev_mod=1")&&(window.IO=k);var z=document.querySelector("#article article"),q=document.querySelector('meta[name="adx:sections"]');q&&z&&(q=q.content)&&_io_slice_set("category",_io_replace_to_html(q.toUpperCase().trim()));_io_video_tracker.config= {youtube:!0,jwplayer:!0,html5:!0,safe_yt:!0};_io_video_tracker.init();_io_widget_hash=y();k.tracking.videos.init();_io_block_tracking_new();var A=document.querySelector("article, #allrecords");A&&_io_slice_push("reference_time",_io_reference_time(A));_io_depth=1;var v=new Date;v.setTime(v.getTime()+9E5);-1==_io_cookie_indexOf("_io_s=")?_io_cookie_set_value("_io_s=1; expires="+v.toUTCString()+"; path=/"):(_io_depth=_io_cookie_match(/_io_s=([^;]+)/)[1],_io_depth=(parseInt(_io_depth)||0)+1,_io_cookie_set_value("_io_s="+ _io_depth+"; expires="+v.toUTCString()+"; path=/"));try{if("undefined"!=typeof localStorage){var t=localStorage._io_queue;if(t){var t=JSON.parse(t),u;for(u in t)t[u].key&&_io_track_batch(t[u].key,t[u].value);localStorage.removeItem("_io_queue")}}}catch(h){}_io_track_batch("pageviews_info["+_io_slices.join(",")+"]");try{-1===_io_cookie_indexOf("test_track")&&"#test_track"!=location.hash&&"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.io"!= window.navigator.userAgent||_io_track("pageviews_test["+_io_slices.join(",")+"]")}catch(h){}_io_track_time()}}catch(h){_io_track_exception("error_script_dicaprio[app:42381,error:"+encodeURIComponent(h.message.replace(/[:,'()]/g,"_"))+"_one]"),_io_track_exception_new("error_script[app:42381,title:"+h.message.replace(/[:,'()]/g,"_")+",url:"+location.pathname+",browser:"+_io_browser()+",browser_version:"+_io_get_browser_version()+",device:"+_io_device()+",page:"+_io_page()+",domain:"+location.hostname+ ",writer:"+navigator.userAgent.replace(/[:,]/g,"_")+",cdn_version:15,user_id:"+_io_user()+"]"),_io_track("error_script[title:"+h.message.replace(/[:,]/g,"_")+",url:"+location.pathname+",browser:"+_io_browser()+",browser_version:"+_io_get_browser_version()+",device:"+_io_device()+",page:"+_io_page()+",writer:"+navigator.userAgent.replace(/[:,]/g,"_")+",cdn_version:15,user_id:"+_io_user()+"]")}};_io_init_async()})();